package org.hzandyy.framework.liteflow.resp;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import org.hzandyy.framework.liteflow.context.CustomContext;
import org.hzandyy.framework.liteflow.support.Obj;

/**
 * @author hz
 * @since 2023/12/8 14:29
 */
@LiteflowComponent(value = "end", name = "endName")
@Slf4j
public class EndCmp extends NodeComponent {
    @Override
    public void process() throws Exception {
        log.info("process end...");
        this.getContextBean(CustomContext.class).setData("end", new Obj("end"));
    }
}
